home *** CD-ROM | disk | FTP | other *** search
/ Super Shareware Collection / Super Shareware Collection.iso / os_2 / epmgcc10.zip / GCCMENU.E < prev    next >
Text File  |  1994-01-02  |  2KB  |  35 lines

  1. /*
  2. ╔══════════════════════════════════════════════════════════════════════════════╗
  3. ║ What's it called: EPMGCC  V1.00                                              ║
  4. ║                                                                              ║
  5. ║ What does it do:  The E source code for the GCC-Interface                    ║
  6. ║                   for EPM. This file is included by PROCESSMENUINIT          ║
  7. ║                   in stdctrl.e for setting menu attributes.                  ║
  8. ║                                                                              ║
  9. ║ Who and When:     B. Bablok 12/93 - 01/94                                    ║
  10. ║                                                                              ║
  11. ╚══════════════════════════════════════════════════════════════════════════════╝
  12. */
  13.  
  14. -- since this file is included at the end of PROCESSMENUINIT (via mymnuini.e)
  15. -- we cannot put any global declarations here.  We need to use a procedure call
  16. -- to get the value of universal variables.
  17.  
  18. IF menuid=33 THEN                                           -- GCC menu ID is 33
  19.    SetMenuAttribute( 3301, 16384, NOT gcc_project_open())   -- gray out items
  20.    SetMenuAttribute( 3302, 16384, gcc_project_open())
  21.    SetMenuAttribute( 3303, 16384, gcc_project_open())
  22.    SetMenuAttribute( 3305, 16384, gcc_is_cc_file())
  23.    SetMenuAttribute( 3306, 16384, gcc_is_cc_file())
  24.    SetMenuAttribute( 3307, 16384, gcc_project_open())
  25.    SetMenuAttribute( 3308, 16384, gcc_project_file_exists())
  26.    SetMenuAttribute( 3309, 16384, gcc_error_file_exists())
  27.    SetMenuAttribute( 3311, 16384, gcc_exe_exists())
  28.    SetMenuAttribute( 3312, 16384, gcc_exe_exists())
  29.  
  30.    SetMenuAttribute( 3314, 8192, NOT get_gcc_debug_mode())     -- set checkmark
  31.    SetMenuAttribute( 3315, 8192, NOT get_gcc_autosave_mode())
  32.    SetMenuAttribute( 3316, 8192, NOT get_gcc_verbose_mode())
  33.    RETURN
  34. ENDIF
  35.